package com.example.Web_chat.mapper;

import com.example.Web_chat.model.GroupMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupMessageMapper {

    // 根据群聊ID查找所有消息
    List<GroupMessage> findByGroupId(Integer groupId);

    // 发送消息
    void sendMessageGroup(GroupMessage message);
}
